﻿@using Abp.Application.Services.Dto;
@using FwProject.Distribution.Dto.Statistics
@model List<QuarterlySummaryDayDto>


<div id="table_print">

   
    <table class="table table-bordered table-hover table-rowselected">
        <thead>
            <tr>
                <th>商品</th>
                <th>配送总数</th>
                <th>回收总数</th>
            </tr>
        </thead>
        <tbody>
            @if (Model.Count == 0)
            {
                <tr><td class="text-center" colspan="3">暂无信息</td></tr>
            }
            else
            {
                int delivery = 0;
                int recycling = 0;
                foreach (var item in Model)
                {
                    delivery = delivery + item.TotalDelivery;
                    recycling = recycling + item.TotalRecycling;
                    <tr>
                        <td>@item.ProductName</td>
                        <td>@item.TotalDelivery</td>
                        <td>@item.TotalRecycling</td>
                    </tr>
                }
                <tr class="footer">
                    <td class="text-center" style="color:red;">合计</td>
                    <td style="color:red;">@delivery</td>
                    <td style="color:red;">@recycling</td>
                </tr>
            }
        </tbody>
    </table>

</div>